![]() |
IntlScript |
||||
Header: | Script.h | Carbon status: | Supported | |
The IntlScript function identifies the script system used by the Text Utilities date-formatting, time-formatting, and string-sorting functions.
SInt16 IntlScript ();
A script code. All recognized script codes and their defined constants are listed in 0).
If the international resources selection flag is TRUE, the script code returned is that of the system script.
If the identified script system is not enabled, the script code returned is that of the system script and the script-defaulted result flag is set to TRUE.
Information about the script system is subject to two control flags—the font force flag and the international resources selection flag. You can test and set these flags with the GetScriptManagerVariable and SetScriptManagerVariable selectors smFontForce and smIntlForce.
The function starts by initializing two result flags, the script-forced result flag and the script-defaulted result flag, to FALSE. These flags are Script Manager variables, accessed through the GetScriptManagerVariable function selectors smForced and smDefault.
The function also identifies the script system whose resources are returned by the Script Manager function GetIntlResource. It is either the font script—the script system corresponding to the current font of the active graphics port—or the system script.
IntlScript may move memory; your application should not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)